fix: Fix yq syntax for parsing the metadata XML content#27
fix: Fix yq syntax for parsing the metadata XML content#27cheemeng wants to merge 2 commits intomise-plugins:mainfrom
Conversation
|
Thanks a lot for finding and investigating this issue! I dug around a little bit: The issue is not with the XML file but with yq which just recently To restore the "bugged" behavior in yq v4.48.1 we need to add the flag |
Ah... sorry, guess my sleuthing did not go as deep as yours to check if it was something with yq instead :-) In that case it would be much better to cancel this PR and submit a new one with the flag instead, so as not to pollute the commits with undos? |
|
Your proposed solution with the added XML namespace just gave me the idea to look into yq, so thanks for that :) You can just amend your existing commit and force-push to your branch again. I just took a look again and the tests will need to be adjusted to disregard namespaces too.
No guarantee of accuracy or completeness ;) If you want I can create the PR with the changes outlined above, but after the work you put in it would be great to have your name in the git history of this plugin. |
|
Oops, just saw your new message and got reminded about the test scripts as well... gimme a sec |
…namespace prefixes
|
Erm... on second thought, I am finding it hard to read the test scripts and amend the tests you suggested (am traveling at the moment, and the github mobile app is driving me nuts now lol), perhaps you could help with that @Syquel ? |
|
I submitted #28 |
|
Lol I finally managed to find a place with wifi to sit down and amend the tests on my laptop... again, only to find that you have done it already. Thanks @Syquel |
cheemeng
left a comment
There was a problem hiding this comment.
I thought it might make more sense to keep the --xml-keep-namespace parameter next to --input-format xml because the option only makes sense when it is an XML anyway
|
Ah sorry I thought you wanted me to take over :/ I am still okay with your PR if you rebase it instead of merging the main branch into yours, but that's jdx' decision to make in the end. |
|
It's all good no worries. I felt bad to push it back to you to do, that was why I did it as well. At the end of the day it matters not whose code is used, as long as they fix the issue, and fix it correctly. :-) |
There must have been some changes lately in the XML content... which led to parsing error when trying to get version numbers of the SDK.